//
//  BLSubListFlowLayout.swift
//  BLLiveTelecast
//
//  Created by BigL055 on 16/6/10.
//  Copyright © 2016年 bigL.liveTelecast.com. All rights reserved.
//

import UIKit

class BLSubListFlowLayout: UICollectionViewFlowLayout {

    override func prepareLayout() {
        super.prepareLayout()
        
        // 1.设置layout相关的属性
        let itemW : CGFloat = BL_SCREEN_WIDTH * 0.5
        let itemH : CGFloat = itemW / BLVideoRtatio_16x9 + 2 * BL_Magin
        
        
        itemSize = CGSize(width: itemW,height: itemH)
        
        minimumLineSpacing = 0
        minimumInteritemSpacing = 0
        scrollDirection = .Vertical
        
        // 2.设置collectionView的属性
        collectionView?.showsHorizontalScrollIndicator = false
        collectionView?.showsVerticalScrollIndicator = false
        
    }

}
